/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CU022b.java
 *
 * Created on 03/11/2012, 14:30:49
 */
package victory;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

/**
 *
 * @author Loreley
 */
public class CU022b extends javax.swing.JPanel {

    /** Creates new form CU022b */
    public CU022b() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        boton_cerrar = new javax.swing.JButton();
        label_titulo = new javax.swing.JLabel();
        scp_competenciasDeportivas = new javax.swing.JScrollPane();
        tabla_competencias = new javax.swing.JTable();
        boton_mostrarFixture = new javax.swing.JButton();
        boton_mostrarTabla = new javax.swing.JButton();

        setMinimumSize(new java.awt.Dimension(800, 600));
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(victory.VictoryApp.class).getContext().getResourceMap(CU022b.class);
        boton_cerrar.setText(resourceMap.getString("boton_cerrar.text")); // NOI18N
        boton_cerrar.setName("boton_cerrar"); // NOI18N

        label_titulo.setFont(new java.awt.Font("Tahoma", 1, 18));
        label_titulo.setText(resourceMap.getString("label_titulo.text")); // NOI18N
        label_titulo.setName("label_titulo"); // NOI18N

        scp_competenciasDeportivas.setName("scp_competenciasDeportivas"); // NOI18N

        tabla_competencias.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Nombre de la Competencia", "Deporte Asociados", "Modalidad", "Estado", "Usuarios"
            }
        ));
        tabla_competencias.setName("tabla_competencias"); // NOI18N
        scp_competenciasDeportivas.setViewportView(tabla_competencias);

        boton_mostrarFixture.setText(resourceMap.getString("boton_mostrarFixture.text")); // NOI18N
        boton_mostrarFixture.setName("boton_mostrarFixture"); // NOI18N
        boton_mostrarFixture.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_mostrarFixtureActionPerformed(evt);
            }
        });

        boton_mostrarTabla.setText(resourceMap.getString("boton_mostrarTabla.text")); // NOI18N
        boton_mostrarTabla.setName("boton_mostrarTabla"); // NOI18N
        boton_mostrarTabla.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_mostrarTablaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(44, 44, 44)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(boton_mostrarFixture)
                        .addGap(33, 33, 33)
                        .addComponent(boton_mostrarTabla)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 182, Short.MAX_VALUE)
                        .addComponent(boton_cerrar)
                        .addGap(206, 206, 206))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(scp_competenciasDeportivas, javax.swing.GroupLayout.PREFERRED_SIZE, 548, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(label_titulo))
                        .addContainerGap(208, Short.MAX_VALUE))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(43, 43, 43)
                .addComponent(label_titulo)
                .addGap(18, 18, 18)
                .addComponent(scp_competenciasDeportivas, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(47, 47, 47)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(boton_cerrar)
                    .addComponent(boton_mostrarFixture)
                    .addComponent(boton_mostrarTabla))
                .addGap(265, 265, 265))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void boton_mostrarFixtureActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_mostrarFixtureActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_boton_mostrarFixtureActionPerformed

    private void boton_mostrarTablaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_mostrarTablaActionPerformed
        // TODO add your handling code here:
         this.removeAll();
         this.setLayout(new FlowLayout());
         this.add(new CU021(), BorderLayout.CENTER);
    }//GEN-LAST:event_boton_mostrarTablaActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton boton_cerrar;
    private javax.swing.JButton boton_mostrarFixture;
    private javax.swing.JButton boton_mostrarTabla;
    private javax.swing.JLabel label_titulo;
    private javax.swing.JScrollPane scp_competenciasDeportivas;
    private javax.swing.JTable tabla_competencias;
    // End of variables declaration//GEN-END:variables
}
